package com.jie.langlangmall.service;

import com.jie.langlangmall.dto.SmsCouponParam;
import com.jie.langlangmall.model.SmsCoupon;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author Jie
 * @Date 2024/11/26
 * @Email 3217998214@qq.com
 * @Description 优惠券
 */
public interface SmsCouponService {

    @Transactional
    void create(SmsCouponParam couponParam);

    @Transactional
    void delete(Long id);

    @Transactional
    void update(Long id, SmsCouponParam couponParam);

    List<SmsCoupon> list(String name, Integer type, Integer pageSize, Integer pageNum);

    SmsCouponParam getItem(Long id);
}
